import request from "../utils/request";

/**
 * 获取用户反馈
 * */

export const getUserFeedback = (params: any) => request.get('/feedback', { params })

/**
 * 添加用户反馈
 * */
export interface IAdd {
    userid: string,
    date: string,
    content: string,
}

export const addUserFeedback = (data: IAdd) => request.post('/feedback', data)

/**
 * 删除反馈
 * */ 
export const delUserFeedback=(id:any)=>request.delete(`/feedback/${id}`)